#!/usr/bin/env python
import re

fd = open("typeData.txt")
ofd = open("outTypeData.txt", "w")

lines = []

while True:
    line = fd.readline()
    if not line:
        break
    fields = line.split()
    fields[1] = re.sub(r"_", " ", fields[1])
    lines.append(fields)

print >> ofd, " >>> TYPE1 <<< \n"
for fields in lines:
    print >> ofd, "\"%s\"," %(fields[3]),

print >> ofd, " >>> TYPE2 <<< \n"
for fields in lines:
    try: 
        fields[4]
    except:
        fields.append("-")
    print >> ofd, "\"%s\"," %(fields[4]),
